package com.gxc.event;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件.
 *
 * @author 宫新程
 * @since 2019/1/25 11:01
 */
public class MyEvent extends ApplicationEvent {

  private String msg;

  public MyEvent(Object source, String msg) {
    super(source);
    this.msg = msg;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
}
